package com.example.api.controller;

import com.example.api.annotation.ApiVersion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试
 * @Author jie.zhao
 * @Date 2021/9/9 14:28
 */
@RestController
public class TestController {

   /* @GetMapping("test")
    public String test() {
        return "test 版本~~~~";
    }*/

    @GetMapping("test")
    @ApiVersion("1.0.0")
    public String testV100() {
        return "test 版本1.0.0~~~~";
    }

    @GetMapping("test")
    @ApiVersion("1.0.1")
    public String testV101() {
        return "test 版本1.0.1~~~~";
    }


   /* @GetMapping("test")
    @ApiVersion("1.0.2.1")
    public String testV1021() {
        return "test 版本1.0.2.1~~~~";
    }*/
}
